package com.example.listener;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.messaging.handler.annotation.SendTo;
import org.springframework.stereotype.Component;

@Component
public class MessageActiveMQListener {
    @JmsListener(destination = "order.queue.id")
    @SendTo("order.queue.get.id")
    public String HandlingMessageListeners(String id) {
        System.out.println("处理成功" + id);
        return "new " + id;
    }
}
